package com.dudy.stragy;

import com.dudy.chain.AbstractProvince;

/**
 * @program: zhuguangDemo
 * @description: ${description}
 * @author: dudy
 * @create: 2018-04-05 21:09
 **/
public class Hubei implements Province {

    private static String type = "hubei";
    @Override
    public void todo(String type) {
        if (type.equals(Hubei.type)) {
            System.out.println("hubei");
        }
    }

    /**
     * 策略模式已经会有类似的方法
     * @param type
     * @return
     */
    @Override
    public boolean isMyJob(String type) {
        return type.equals(Hubei.type);
    }
}
